/*
 * Copyright (C) 2012, EADS France
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */
package xowl.repo;

/**
 *
 * @author Laurent WOUTERS
 */
public interface Stage {
    Changeset getBase();
    User getAuthor();
    
    void add(xowl.lang.owl2.Ontology onto, xowl.lang.owl2.Axiom axiom);
    void remove(xowl.lang.owl2.Ontology onto, xowl.lang.owl2.Axiom axiom);
    void clear();
    
    void commit(String message);
    void commit(String message, String newBranch);
    void commit(String message, boolean closeBranch);
    
    MergingStage merge(Changeset changeset);
}
